<?php

use yii\helpers\Html;


$this->title =  $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Products'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
<div class="product-update">

    <h2 class="page-header"><?= Html::encode($this->title) ?>
        <p class="pull-right">
        <?= Html::a(Yii::t('app', 'Index'), ['index'], ['class' => 'btn btn-danger']) ?>
        <!-- ?= Html::a(Yii::t('app', 'Trip'), ['trip', 'id' => $model->id], ['class' => 'btn btn-warning']) ? -->
        </p>
    </h2>

    <?= $this->render('_form', [
        'model' => $model,
    ]) ?>

</div>
